<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Fuzzy image processing</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Fuzzy image processing<div class="ingroups"><a class="el" href="../../df/d5b/group__fuzzy.html">Image processing based on fuzzy mathematics</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0e5694cf8dd380d512e915660870027c"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/dfc/group__f__image.html#ga0e5694cf8dd380d512e915660870027c">cv::ft::createKernel</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> A, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> B, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> kernel, const int chn)</td></tr>
<tr class="memdesc:ga0e5694cf8dd380d512e915660870027c"><td class="mdescLeft"> </td><td class="mdescRight">Creates kernel from basic functions.  <a href="../../d1/dfc/group__f__image.html#ga0e5694cf8dd380d512e915660870027c">More...</a><br/></td></tr>
<tr class="separator:ga0e5694cf8dd380d512e915660870027c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8b7e380f7e09f0efa30ca315f50bd214"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/dfc/group__f__image.html#ga8b7e380f7e09f0efa30ca315f50bd214">cv::ft::createKernel</a> (int function, int radius, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> kernel, const int chn)</td></tr>
<tr class="memdesc:ga8b7e380f7e09f0efa30ca315f50bd214"><td class="mdescLeft"> </td><td class="mdescRight">Creates kernel from general functions.  <a href="../../d1/dfc/group__f__image.html#ga8b7e380f7e09f0efa30ca315f50bd214">More...</a><br/></td></tr>
<tr class="separator:ga8b7e380f7e09f0efa30ca315f50bd214"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga99c17738a69b556b18bc86e7aee1a1d9"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/dfc/group__f__image.html#ga99c17738a69b556b18bc86e7aee1a1d9">cv::ft::filter</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> kernel, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> output)</td></tr>
<tr class="memdesc:ga99c17738a69b556b18bc86e7aee1a1d9"><td class="mdescLeft"> </td><td class="mdescRight">Image filtering.  <a href="../../d1/dfc/group__f__image.html#ga99c17738a69b556b18bc86e7aee1a1d9">More...</a><br/></td></tr>
<tr class="separator:ga99c17738a69b556b18bc86e7aee1a1d9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga62fa7703db24939ad65d7a799e8e599e"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/dfc/group__f__image.html#ga62fa7703db24939ad65d7a799e8e599e">cv::ft::inpaint</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> output, int radius, int function, int algorithm)</td></tr>
<tr class="memdesc:ga62fa7703db24939ad65d7a799e8e599e"><td class="mdescLeft"> </td><td class="mdescRight">Image inpainting.  <a href="../../d1/dfc/group__f__image.html#ga62fa7703db24939ad65d7a799e8e599e">More...</a><br/></td></tr>
<tr class="separator:ga62fa7703db24939ad65d7a799e8e599e"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Image proceesing based on fuzzy mathematics namely F-transform. </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga0e5694cf8dd380d512e915660870027c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0e5694cf8dd380d512e915660870027c">◆ </a></span>createKernel() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ft::createKernel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>A</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>B</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int </td>
          <td class="paramname"><em>chn</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>kernel</td><td>=</td><td>cv.ft.createKernel(</td><td class="paramname">function, radius, chn[, kernel]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>kernel</td><td>=</td><td>cv.ft.createKernel1(</td><td class="paramname">A, B, chn[, kernel]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/dba/fuzzy__image_8hpp.html">opencv2/fuzzy/fuzzy_image.hpp</a>&gt;</code></p>
<p>Creates kernel from basic functions. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">A</td><td>Basic function used in axis <b>x</b>. </td></tr>
    <tr><td class="paramname">B</td><td>Basic function used in axis <b>y</b>. </td></tr>
    <tr><td class="paramname">kernel</td><td>Final 32-bit kernel derived from <b>A</b> and <b>B</b>. </td></tr>
    <tr><td class="paramname">chn</td><td>Number of kernel channels.</td></tr>
  </table>
  </dd>
</dl>
<p>The function creates kernel usable for latter fuzzy image processing. </p>
</div>
</div>
<a id="ga8b7e380f7e09f0efa30ca315f50bd214"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8b7e380f7e09f0efa30ca315f50bd214">◆ </a></span>createKernel() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ft::createKernel </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int </td>
          <td class="paramname"><em>chn</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>kernel</td><td>=</td><td>cv.ft.createKernel(</td><td class="paramname">function, radius, chn[, kernel]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>kernel</td><td>=</td><td>cv.ft.createKernel1(</td><td class="paramname">A, B, chn[, kernel]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/dba/fuzzy__image_8hpp.html">opencv2/fuzzy/fuzzy_image.hpp</a>&gt;</code></p>
<p>Creates kernel from general functions. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">function</td><td>Function type could be one of the following:<ul>
<li><b>LINEAR</b> Linear basic function. </li>
</ul>
</td></tr>
    <tr><td class="paramname">radius</td><td>Radius of the basic function. </td></tr>
    <tr><td class="paramname">kernel</td><td>Final 32-bit kernel. </td></tr>
    <tr><td class="paramname">chn</td><td>Number of kernel channels.</td></tr>
  </table>
  </dd>
</dl>
<p>The function creates kernel from predefined functions. </p>
</div>
</div>
<a id="ga99c17738a69b556b18bc86e7aee1a1d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga99c17738a69b556b18bc86e7aee1a1d9">◆ </a></span>filter()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ft::filter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>output</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>output</td><td>=</td><td>cv.ft.filter(</td><td class="paramname">image, kernel[, output]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/dba/fuzzy__image_8hpp.html">opencv2/fuzzy/fuzzy_image.hpp</a>&gt;</code></p>
<p>Image filtering. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>Input image. </td></tr>
    <tr><td class="paramname">kernel</td><td>Final 32-bit kernel. </td></tr>
    <tr><td class="paramname">output</td><td>Output 32-bit image.</td></tr>
  </table>
  </dd>
</dl>
<p>Filtering of the input image by means of F-transform. </p>
</div>
</div>
<a id="ga62fa7703db24939ad65d7a799e8e599e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga62fa7703db24939ad65d7a799e8e599e">◆ </a></span>inpaint()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ft::inpaint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>algorithm</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>output</td><td>=</td><td>cv.ft.inpaint(</td><td class="paramname">image, mask, radius, function, algorithm[, output]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/dba/fuzzy__image_8hpp.html">opencv2/fuzzy/fuzzy_image.hpp</a>&gt;</code></p>
<p>Image inpainting. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>Input image. </td></tr>
    <tr><td class="paramname">mask</td><td>Mask used for unwanted area marking. </td></tr>
    <tr><td class="paramname">output</td><td>Output 32-bit image. </td></tr>
    <tr><td class="paramname">radius</td><td>Radius of the basic function. </td></tr>
    <tr><td class="paramname">function</td><td>Function type could be one of the following:<ul>
<li><code><a class="el" href="../../df/d5b/group__fuzzy.html#gga847dcdc873389a919e2c3ba910a2bd39a4d3d0c977941e929e23e9c6cb4ae4715" title="linear (triangular) shape ">ft::LINEAR</a></code> Linear basic function. </li>
</ul>
</td></tr>
    <tr><td class="paramname">algorithm</td><td><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. ">Algorithm</a> could be one of the following:<ul>
<li><code><a class="el" href="../../df/d5b/group__fuzzy.html#ggaf609444993d5dcfe2d1837f80e6f2e88ae6619bf12f07b1ec1f249341568fd56d" title="processing in one step ">ft::ONE_STEP</a></code> One step algorithm.</li>
<li><code><a class="el" href="../../df/d5b/group__fuzzy.html#ggaf609444993d5dcfe2d1837f80e6f2e88ac76aa06a768ef2d483abe5db77cabd39" title="processing in multiple step ">ft::MULTI_STEP</a></code> This algorithm automaticaly increases radius of the basic function.</li>
<li><code><a class="el" href="../../df/d5b/group__fuzzy.html#ggaf609444993d5dcfe2d1837f80e6f2e88a42216ed5e5593d09ba0a26576061c33f" title="processing in several iterations ">ft::ITERATIVE</a></code> Iterative algorithm running in more steps using partial computations.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<p>This function provides inpainting technique based on the fuzzy mathematic.</p>
<dl class="section note"><dt>Note</dt><dd>The algorithms are described in paper <a class="el" href="../../d0/de3/citelist.html#CITEREF_Perf:rec">[194]</a>. </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
